/************************************
 * created by Tonk (tonk@ctonk.com) *
 ************************************/

// note.h

#ifndef NOTE_H
#define NOTE_H

#include "definitions.h"
#include <fstream>
#include <string>

class Note {
	private:
		int			_id;
		int			_pid;
		std::string	_board;
		std::string	_author;
		std::string	_recipient;
		std::string	_subject;
		std::string	_body;
		std::string	_sent;

	public:
		Note();
		Note( Note& );
		~Note();

		Note& operator = ( Note& );

		void		setId( int );
		int			getId();
		void		setPid( int );
		int			getPid();
		void		setBoard( std::string );
		std::string	getBoard();
		void		setAuthor( std::string );
		std::string	getAuthor();
		void		setRecipient( std::string );
		std::string	getRecipient();
		void		setSubject( std::string );
		std::string	getSubject();
		void		setBody( std::string );
		std::string& getBody();
		void		setSent( std::string );
		std::string	getSent();

		void	save( std::ofstream& );
		void	load( std::ifstream& );

		static int noteIndex;
		static int numNotes;
};



#endif // #ifndef NOTE_H
